package com.jcl.recruit.console;

import com.jcl.recruit.console.mapper.ConsoleCorpInfoMapper;
import com.jcl.recruit.console.model.ConsoleCorpInfo;
import com.jcl.recruit.console.vo.ConsoleCorpPageCondition;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @ClassName ConsoleCorpDao
 * @Author yyliu
 * @Date 2018/12/14 9:11
 * @Version 1.0
 **/
@Component
public class ConsoleCorpDao implements ConsoleCorpInfoMapper {

    @Autowired
    private ConsoleCorpInfoMapper consoleCorpInfoMapper;

    @Override
    public List<ConsoleCorpInfo> pageList(ConsoleCorpPageCondition condition) {
        return consoleCorpInfoMapper.pageList(condition);
    }

    @Override
    public List<ConsoleCorpInfo> findList() {
        return consoleCorpInfoMapper.findList();
    }

    @Override
    public List<Map<String, Object>> getCountList() {
        return consoleCorpInfoMapper.getCountList();
    }

    @Override
    public ConsoleCorpInfo findOne(Integer id) {
        return consoleCorpInfoMapper.findOne(id);
    }

    @Override
    public ConsoleCorpInfo findOneByCode(String code) {
        return consoleCorpInfoMapper.findOneByCode(code);
    }

    @Override
    public int insert(ConsoleCorpInfo entity) {
        return consoleCorpInfoMapper.insert(entity);
    }

    @Override
    public int updateByPrimaryKey(ConsoleCorpInfo entity) {
        return consoleCorpInfoMapper.updateByPrimaryKey(entity);
    }

    @Override
    public int deleteById(Integer id) {
        return consoleCorpInfoMapper.deleteById(id);
    }
}
